package com.zhouqinuan.spring.cloud.develop.framework.demo.provider.feign.config;

import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.zhouqinuan.spring.cloud.develop.framework.demo.provider.feign.fallback.UserFeignFallBack;

@Configuration
public class FallBackConfiguration {
    
    @ConditionalOnMissingBean
    @Bean
    public UserFeignFallBack userFeignFallBack() {
        return new UserFeignFallBack();
    }
}
